var tickCount = 0;
var maxTickCount = 0;

function init(inMaxTimes){
    this.maxTickCount = inMaxTimes;
    this.tickCount = 1;
}

function tick(){
    if (++tickCount >= maxTickCount )
        return false;
    else
        return true;
}
